From ea3ee2e615de6ecd55a5b7e26eaee383e9b5eec2 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 31 Mar 2009 11:26:10 +0100 Subject: [PATCH] xend: Allow drbd disks. From: Ben Timby Signed-off-by: Keir Fraser --- tools/python/xen/util/blkif.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/util/blkif.py b/tools/python/xen/util/blkif.py index 29b23fb7dd..6091afe5ac 100644 --- a/tools/python/xen/util/blkif.py +++ b/tools/python/xen/util/blkif.py @@ -75,7 +75,7 @@ def _parse_uname(uname): fn = taptype = None if uname.find(":") != -1: (typ, fn) = uname.split(":", 1) - if typ == "phy" and not fn.startswith("/"): + if typ in ("phy", "drbd") and not fn.startswith("/"): fn = "/dev/%s" %(fn,) if typ == "tap": (taptype, fn) = fn.split(":", 1) -- 2.30.2